package com.bjpowernode.service;

import com.bjpowernode.dao.StudentDao;
import com.bjpowernode.entity.Student;

public class StudentServiceImpl implements StudentService {

    private StudentDao studentDao;

    public void setStudentDao(StudentDao studentDao) {
        this.studentDao = studentDao;
    }

    @Override
    public void register(Student student) {
        System.out.println("register方法开始");
        int result=studentDao.addStudent(student);
        System.out.println("添加了"+result+"条数据");

        System.out.println("register方法结束");
    }
}
